package com.example.lotterysystem.controller.result;



import com.example.lotterysystem.service.enums.ActivityPrizeStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class FindActivityDetailResult  implements Serializable {

    //保存活动相关信息
    private Long activityId;
    private String activityName;
    private String description;
    /**
     * 判断活动是否有效
     */
    private boolean valid;

    //活动奖品相关信息
    private List<Prize> prizes;

    //人员相关信息
    private List<User> users;


    @Data
    public static class Prize{
        private Long prizeId;
        private String description;
        private String imageUrl;
        private String name;
        private BigDecimal price;
        /**
         * 奖品等级
         * @see ActivityPrizeStatusEnum#getMessage()
         */
        private String prizeTierName;
        private boolean valid;
        private Long prizeAmount;

    }

    @Data
    public static class User{
        private Long userId;
        private String userName;
        private boolean valid;
    }


}
